package com.basin.micro.auth.module.menu.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basin.common.mp.annotation.RequireValFields;
import com.basin.common.mp.annotation.UniqueKeys;
import com.basin.common.mp.base.BaseEntity;
import com.basin.micro.auth.module.menu.pojo.enums.MenuTypeEnum;
import com.basin.micro.auth.module.menu.pojo.enums.RouteTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("basin_auth_menu")
@RequireValFields(fields = {"menu_code", "menu_name", "menu_type", "menu_status", "route_type"})
@UniqueKeys(fields = {"menu_code", "menu_route"})
public class MenuEntity extends BaseEntity {
    private String menuCode;
    private String menuName;
    private String menuIcon;
    private String menuRoute;
    private RouteTypeEnum routeType;
    private MenuTypeEnum menuType;
    private String parentCode;
    private Integer menuOrder;
    private Integer menuStatus;
    private String menuDesc;
    private String sysCode;
}
